import { defineStore } from "pinia";

export const useTaskStore = defineStore("task", {
  state: () => ({
    current: null, // 要带走的数据
  }),
  actions: {
    setTask(payload) {
      this.current = payload;
    },
    clearTask() {
      this.current = null;
    },
  },
});
